#@datagrid()
#define content_header()
<h1>
    钻石交易明细管理
    <small>advanced tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="/diamondtransactiondetail/">财务</a></li>
    <li class="active">钻石交易明细管理</li>
</ol>
#end
#define content()
<div class="box">
    <div class="box-header">
		<form class="navbar-form"
			action="/diamondtransactiondetail/1">
			<div class="form-group">
				<label>注册时间</label> <input type="text" name="date1"
					class="form-control input-sm xsui-jedatepicker" placeholder="起始时间"
					title="" value="#(date1??)"> - <input type="text"
					name="date2" class="form-control input-sm xsui-jedatepicker"
					placeholder="终止时间" title="" value="#(date2??)"
					style="margin-right: 10px">
			</div>
			<div class="form-group">
				<label>代理ID/昵称</label> <input type="text" name="word"
					class="form-control input-sm" placeholder="会员ID/昵称" title="会员ID"
					value="#(word)">
			</div>
			<button type="submit" class="btn btn-sm btn-default">搜索</button>
		</form>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th>交易流水号</th>
                    <th>用户ID</th>
                    <th>用户昵称</th>
                    <th>交易单号</th>
                    <th>钻石数量</th>
                    <th>转换类型</th>
                    <th>交易类型</th>
                    <th>交易金额</th>
                    <th>交易时间</th>
                    <th>流水说明</th>
                    <th>第三方渠道充值单号</th>
                </tr>
            </thead>
            <tbody>
                #for(x : listPage.getList())
                <tr data-key="#(x.user_id)">    
					<td>#(x.id)</td>                    
                    <td>#(x.user_id)</td>              
                    <td>#(x.nickname)</td>
                    <td>#(x.serial_no)</td>
                    <td>#(x.transform_amount)</td>
                    <td>#(x.transformTypeText)</td>
                    <td>#(x.tradeTypeText)</td>
                    <td>#(x.amount)</td>
                    <td>#(x.createTimeText)</td>
                    <td>#(x.remark)</td>
                    <td>#(x.out_trade_no)</td>
                </tr>
                #end
            </tbody>
        </table>
        <!--分页条-->
		<table>
			<tr>
				<td>#@paginate(listPage.pageNumber, listPage.totalPage,
					"/diamondtransactiondetail/")</td>
				<td><div class="xsui-datagrid-info">
						共<span class="text-danger">#(listPage.getTotalRow())</span>条
					</div></td>
			</tr>
		</table>
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
#end
#define body_foot()
<script type="text/javascript">
	xsApp.xsfnInitJeDatePicker('.xsui-jedatepicker');
</script>
#end